const toplogo = $('.top-logo img')
const top1= $('.top')
const navitemlist = $('.item-list li a')
const toplocation = $('.top-location')
const locationtext = $('.top-location span:nth-of-type(2)')
const line = $('.line')
const cate = $('.category li')

function topactive(){
    top1.addClass('active')
    toplogo.attr('src','static/img/index/flogo.png')
    navitemlist.addClass('active')
    locationtext.addClass('active')
    cate.addClass('active')
    line.addClass('active')
    toplocation.addClass('active')

}


function topnormal() {
    top1.removeClass('active')
    toplogo.attr('src','static/img/index/toplogo.png')
    navitemlist.removeClass('active')
    toplocation.removeClass('active')
    cate.removeClass('active')
    line.removeClass('active')
    locationtext.removeClass('active')
}

export {top1, topactive, topnormal}